﻿@using SiteManager.Core
@using SiteManager.Models;
@{
    admins admin = Utils.GetAdmin();
}
@if (admin == null)
{
    RenderBody();
    return;
}
<!doctype html>
<!--[if IE 7 ]>    <html lang="gbk" class="no-js ie7"> <![endif]-->
<!--[if IE 8 ]>    <html lang="gbk" class="no-js ie8"> <![endif]-->
<!--[if IE 9 ]>    <html lang="gbk" class="no-js ie9"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--> <html lang="gbk" class="no-js"> <!--<![endif]-->

<head>
	<meta charset="UTF-8">
	<!--[if IE 8 ]><meta http-equiv="X-UA-Compatible" content="IE=7"><![endif]-->
	<title>@("数据中心" + " - " + ViewBag.Title)</title>
	<meta name="description" content="">
	<meta name="author" content="">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	
	<!-- CSS Styles -->
	<link rel="stylesheet" href="@Url.Content("~/Themes/Chromatron/css/style.css")" />
	<link rel="stylesheet" href="@Url.Content("~/Themes/Chromatron/css/jquery.tipsy.css")" />
	<link rel="stylesheet" href="@Url.Content("~/Themes/Chromatron/css/jquery.wysiwyg.css")" />
	<link rel="stylesheet" href="@Url.Content("~/Themes/Chromatron/css/jquery.datatables.css")" />
	<link rel="stylesheet" href="@Url.Content("~/Themes/Chromatron/css/jquery.facebox.css")" />
    <link rel="stylesheet" href="@Url.Content("~/Scripts/plug/apprise/apprise.css")" />

    <!-- JS Libs at the end for faster loading -->
	<script src="@SiteManager.Core.Configs.Cdn.JqueryLib"></script>
	<script>	    !window.jQuery && document.write(unescape('%3Cscript src="@Url.Content("~/Themes/Chromatron/js/jquery/jquery-1.5.1.min.js")"%3E%3C/script%3E'))</script>
	<script type="text/javascript" src="@Url.Content("~/Themes/Chromatron/js/libs/selectivizr.js")"></script>
	<script type="text/javascript" src="@Url.Content("~/Themes/Chromatron/js/jquery/jquery.facebox.js")"></script>
	<script type="text/javascript" src="@Url.Content("~/Themes/Chromatron/js/jquery/jquery.tipsy.js")"></script>
	<script type="text/javascript" src="@Url.Content("~/Themes/Chromatron/js/jquery/jquery.wysiwyg.js")"></script>
	@*<script type="text/javascript" src="@Url.Content("~/Themes/Chromatron/js/jquery/jquery.datatables.js")"></script>*@
    <script type="text/javascript" src="@Url.Content("~/Scripts/plug/apprise/apprise.js")"></script>
	<script type="text/javascript" src="@Url.Content("~/Themes/Chromatron/js/script.js")"></script>
    
    
    <!--[if lt IE 8]>
    <link rel="stylesheet" media="screen" href="@Url.Content("~/Themes/Chromatron/css/ie.css")" />
    <![endif]-->

    <!--[if lt IE 9]>
    <script type="text/javascript" src="@Url.Content("~/Themes/Chromatron/js/libs/html5.js")"></script>
    <script type="text/javascript" src="@Url.Content("~/Themes/Chromatron/js/libs/PIE.js")"></script>
    <script type="text/javascript" src="@Url.Content("~/Themes/Chromatron/js/libs/IE9.js")"></script>
    <script type="text/javascript" src="@Url.Content("~/Themes/Chromatron/js/libs/ie.js")"></script>
    <![endif]-->

</head>
<body>
	<section role="navigation">
		<!-- Header with logo and headline -->
		<header>
			<a href="javascript:;"></a>
			<h1>重庆亚桥科技有限公司版权所有</h1>
		</header>
		
		<!-- User Info -->
		<section id="user-info">
			<img src="@Url.Content("~/Themes/Chromatron/img/sample_user.png")" alt="Sample User Avatar">
			<div>
				<a href="#" title="Account Settings and Profile Page">@(admin.FullName ?? admin.Username)</a>
				<em>Administrator</em>
				<ul>
                    <li>@Html.ActionLink("修改密码", "PasswordChange", "Account", new { }, new { @class = "button-link", rel = "tooltip", title = "修改登陆密码" })</li>
                    <li>@Html.ActionLink("退出", "Exit", "Account", new { }, new { @class = "button-link", rel = "tooltip", title = "安全退出" })</li>
				</ul>
			</div>
		</section>
		<!-- /User Info -->
		
		<!-- Main Navigation -->
        @{
            string controllers = ViewContext.RouteData.Values["controller"].ToString();
            string action = ViewContext.RouteData.Values["action"].ToString();
            }
		<nav id="main-nav">
			<ul>
				<li @(controllers == "Account" ? "class=current" : "")>
                    <a href="javascript:;" class="dashboard no-submenu">个人设置</a>
                    <ul>
                        <li>@Html.ActionLink("个人资料", "UserInfo", "Account")</li>
                        <li>@Html.ActionLink("修改登陆密码", "PasswordChange", "Account")</li>
                        <li>@Html.ActionLink("头像管理", "AvatarManager", "Account")</li>
                    </ul>
                </li>
				<li @(controllers == "Sites" ? "class=current" : "")>
                    @Html.ActionLink("站点管理", "Index", "Sites", new { }, new { @class = "projects" })
				</li>
				<li>
                    <a href="javascript:;" >数据中心</a>
                    <ul>
						<li>内容管理</li>
						<li>会员管理</li>
						<li><a href="#" title="">Project Management</a></li>
						<li><a href="#" title="">Project Gallery</a></li>
						<li><a href="#" title="">Settings</a></li>
					</ul>
				</li>
				<li><a href="#" title="" class="gallery">系统设置</a><span title="You have 47 new tasks">47</span></li>
			</ul>
		</nav>
		<!-- /Main Navigation -->
		
	</section>

    <section role="main">
        @if (ViewBag.Success != null)
        {
            <div class="notification success">
			    <a href="javascript:;" class="close-notification" title="点击关闭" rel="tooltip">x</a>
			    <p><strong>操作成功</strong> @ViewBag.Success 。</p>
		    </div>
        }
        @if (ViewBag.Error != null)
        {
            <div class="notification error">
			    <a href="javascript:;" class="close-notification" title="点击关闭" rel="tooltip">x</a>
			    <p><strong>操作失败</strong> @ViewBag.Error 。</p>
		    </div>
        }
        @if (ViewBag.Information != null)
        {
            <div class="notification information">
				<a href="javascript:;" class="close-notification" title="点击关闭" rel="tooltip">x</a>
				<p><strong>提示信息</strong> @ViewBag.Information 。</p>
			</div>
        }
        @RenderBody()
    </section>
</body>
</html>